import request from "../request"

// 申请交换联系方式
export const applyInfo = (data) => request({url:"/im/applyInfo/"+data.id});

// 统一交换联系方式
export const applyOk = (data) => request({url:"/im/applyOk/"+data.id});

// 获取全部信息
export const getMessageAll = (data) => request({url:"/sess/getCompanyAll",data,method:'post'})

// 获取未读信息
export const getNewMessage = (data) => request({url:"/sess/getCompanyIng",data,method:'post'})

// 获取系统消息
export const getSystemMessage = (data) => request({url:`/notice/companyGetList/${data.current}/${data.limit}`})

// 获取消息详情
export const getMessageList = (data) => request({url:"/sess/companyGetDetail/" + data.id})

// 系统消息设置已读
export const getSystemMessageDetail = (data) => request({url:"/notice/view/save/" + data.id})

// 收藏列表
export const favList = (data) => request({url:"/fav/companyGetList",data,method:'post'})

// 企业获取所有会话列表
export const messageListCompany = (data) => request({url:"/sess/getCompanyAll",data,method:'post'})

// 企业获取未读消息列表
export const unreadMessageListCompany = (data) => request({url:`/sess/getCompanyIng`,data,method:'post'})

// 企业获取系统消息
export const systemMessageListCompany = (data) => request({url:`/notice/companyGetList/${data.current}/${data.limit}`})

// 企业获取消息详情
export const messageDetailCompany =(data) => request({url:`/sess/companyGetDetail/${data.id}`})

// 申请交换联系方式
export const applyTel = (data) => request({url:`/im/applyInfo/${data.id}`})

// 同意交换联系方式
export const successTel = (data) => request({url:`/im/applyOk/${data.id}`})



// 求职获取所有会话列表
export const messageListSeeker = (data) => request({url:"/sess/getSeekerAll",data,method:'post'})

// 求职获取未读消息列表
export const unreadMessageListSeeker = (data) => request({url:`/sess/getSeekerIng`,data,method:'post'})

// 求职获取系统消息
export const systemMessageListSeeker = (data) => request({url:`/notice/seekerGetList/${data.current}/${data.limit}`})

export const messageDetailSeeker = (data) => request({url:`/sess/seekerGetDetail/${data.id}`})

// 企业移除回话
export const qiyeRemoveMessage = (data) => request({url:`/sess/removeSessCompany/${data.id}`})

// 求职者删除会话
export const qiuzhiRemoveMessage = (data) => request({url:`/sess/removeSessSeeker/${data.id}`})

// 删除通知
export const noticeRemoveMessage = (data) => request({url:`/notice/removeMy/${data.id}`})
